package com.unidt.www.module.third.workbar.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.unidt.www.module.third.workbar.domain.TWorkMessageDo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author sk
 * @Description:
 * @Date 2022/12/12 12:13
 **/
@Mapper
public interface WorkMessageMapper extends BaseMapper<TWorkMessageDo> {

  default List<TWorkMessageDo> getMessageList(String zzdCode, String taskId){
      LambdaQueryWrapper<TWorkMessageDo> lambdaQueryWrapper =
              new LambdaQueryWrapper();
      lambdaQueryWrapper.eq(TWorkMessageDo::getTaskId,taskId);
      lambdaQueryWrapper.eq(TWorkMessageDo::getZzdCode,zzdCode);
      lambdaQueryWrapper.eq(TWorkMessageDo::getStatus,0);
      return this.selectList(lambdaQueryWrapper);

  }
}
